﻿<UserControl x:Class="StockholmsStad.Windows.UI.Modules.Maintenance.Views.TabItemRegulationView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Converters="clr-namespace:StockholmsStad.Windows.UI.Infrastructure.Converters;assembly=StockholmsStad.Windows.UI.Infrastructure">
    <UserControl.Resources>
        <Converters:UserRoleToStringConverter x:Key="enumConverter" />
    </UserControl.Resources>

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>

        <ComboBox x:Name="ComboBoxMarriageCertificateTypes" Grid.Row="0" Grid.Column="0"  Width="200"
                      SelectedItem="{Binding UserRole, UpdateSourceTrigger=Explicit}" 
                      SelectionChanged="ComboBoxMarriageCertificateTypes_SelectionChanged">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Converter={StaticResource enumConverter}}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>

        <ComboBox x:Name="ComboBoxLanguages" Grid.Row="0" Grid.Column="1"  Width="200"
                      SelectedItem="{Binding UserRole, UpdateSourceTrigger=Explicit}" 
                      SelectionChanged="ComboBoxLanguages_SelectionChanged">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Path=Description}" />
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>

        <Label Content="tab item regulation" />
    </Grid>
</UserControl>
